package com.baor.handler;

import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class  UserHandler {

    public Mono<ServerResponse> userList(ServerRequest serverRequest){
        List<String> name = Arrays.asList("唐僧","孙悟空","猪八戒","沙悟净");
        return ServerResponse.ok().body(Mono.just(name),List.class);
    }

//    public Mono<ServerResponse> userInfo(ServerRequest serverRequest){
//        return ServerResponse.ok().body(this.userService.userInfo(), R.class);
//    }


    //创建服务器

}


